package com.het.monitor.controller;

import com.het.monitor.common.AjaxResult;
import com.het.monitor.task.model.AppConf;
import com.het.monitor.service.AppConfService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping(path = "/appConf")
public class AppConfController {
    @Resource
    AppConfService appConfService;
    @RequestMapping(value = "/getAreaTypeList", method = RequestMethod.POST)
    public AjaxResult getAreaTypeList() {
        List<AppConf> res = appConfService.getAreaTypeList("A",0);
        return AjaxResult.successData(res);
    }
}
